<template>
  <div>
    <el-alert
      class="alert-m"
      :title="alertText"
      type="info"
      show-icon
      :closable="false"
    >
    </el-alert>
  </div>
</template>

<script>
export default {
  name: 'Alert',
  props: {
    total: Number
  },
  data () {
    return {
      alertText: `共${this.total}条记录`
    }
  }
}
</script>

<style lang="less" scoped>
.alert-m {
  margin-bottom: 20px;
}
</style>
